package com.condominio.negocio;

import junit.framework.Assert;

import org.junit.Before;
import org.junit.Test;

import com.condominio.ws.rest.client.RestClientController;
import com.condominio.ws.rest.domain.Person;

public class WsRestPrueba {

	private RestClientController oController;
	
	@Before
	public void init() {
		this.oController = new RestClientController();
	}

	@Test
	public void debeRegistrarVivienda() {
		try {
			String dni = "12345678";
			Person oPersona = oController.getPerson(dni);
			System.out.println(oPersona.getMoney());
		} catch (Exception e) {
            System.err.println(e.getMessage());
            Assert.fail("Error al consultar la informacion de INFOCORP.");
        }
	}
	
}